package com.mes.system.domain;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.BatchSize;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.hibernate.annotations.GenericGenerator;
import org.springframework.context.annotation.Lazy;

import com.mes.common.domain.BasicModel;

/**
 * ϵͳ��־.
 * 
 * @author lcs
 * data 2017-03-23
 */
@Entity()
//@org.hibernate.annotations.Entity(dynamicInsert=true,dynamicUpdate=true)
@Table(name = "S_LOG")
//@BatchSize(size=10)
//@Lazy(value=true)
//@Cache(usage=CacheConcurrencyStrategy.NONSTRICT_READ_WRITE)
public class SystemLog extends BasicModel {

	// Fields

	@Id
	@GenericGenerator(name = "uniqueId", strategy = "assigned")
	@Column(name="UNIQUEID")
	private String logUid;
	
	@Override
	public String getUuid() {
		return logUid;
	}

	@Override
	public void setUuid(String uuid) {
		this.logUid = uuid;
	}
	
	
	@Column(name="OPERATION_ID")
	private String systemOperationId;
	
	@Column(name="EMPLOYEEID")
	private String employeeUid;
	
	@Column(name="OPERATION_TIME")
	private Date logTime;
	
	@Column(name="PARA_VALUE")
	private String paraValue;
	
	@Column(name="LOGTYPE")
	private String logType;
	
	@Column(name="REMOTE_IP")
	private String remoteIp;
	
	@Column(name="ROLEID")
	private String roleId;
	
	@Column(name="P_FILE")
	private String PFile;
	
	@Column(name="UPDATETABLE")
	private String updateTable;
	
	@Column(name="SESSION_KEY",length=50)
	private String sessionKey;
	
	@Column(name="LCS")
	private String eigenValue;

	// Constructors

	/** default constructor */
	public SystemLog() {
	}

	public String getLogUid() {
		return logUid;
	}

	public void setLogUid(String logUid) {
		this.logUid = logUid;
	}

	public String getSystemOperationId() {
		return systemOperationId;
	}

	public void setSystemOperationId(String systemOperationId) {
		this.systemOperationId = systemOperationId;
	}

	public String getEmployeeUid() {
		return employeeUid;
	}

	public void setEmployeeUid(String employeeUid) {
		this.employeeUid = employeeUid;
	}

	public Date getLogTime() {
		return logTime;
	}

	public void setLogTime(Date logTime) {
		this.logTime = logTime;
	}

	public String getParaValue() {
		return paraValue;
	}

	public void setParaValue(String paraValue) {
		this.paraValue = paraValue;
	}



	public String getLogType() {
		return logType;
	}

	public void setLogType(String logType) {
		this.logType = logType;
	}

	public String getRemoteIp() {
		return remoteIp;
	}

	public void setRemoteIp(String remoteIp) {
		this.remoteIp = remoteIp;
	}

	public String getRoleId() {
		return roleId;
	}

	public void setRoleId(String roleId) {
		this.roleId = roleId;
	}

	public String getPFile() {
		return PFile;
	}

	public void setPFile(String file) {
		PFile = file;
	}

	public String getUpdateTable() {
		return updateTable;
	}

	public void setUpdateTable(String updateTable) {
		this.updateTable = updateTable;
	}

	public String getSessionKey() {
		return sessionKey;
	}

	public void setSessionKey(String sessionKey) {
		this.sessionKey = sessionKey;
	}

	public String getEigenValue() {
		return eigenValue;
	}

	public void setEigenValue(String eigenValue) {
		this.eigenValue = eigenValue;
	}



}